Skip to content

Adds prop inputStyle#316

Open
Jaredude wants to merge 1 commit into
n4kz:masterfrom
Jaredude:master
Open

Adds prop inputStyle#316
Jaredude wants to merge 1 commit into
n4kz:masterfrom
Jaredude:master

Conversation

@Jaredude

Copy link
Copy Markdown

inputStyle is spread first, allowing the fixed props of fontSize, baseColor, textColor, disabled, multiline to override
This allows for all TextStyleProps to be supported (e.g. textAlign) by the TextInput componant.
using textAlign as an example: it's determined by I18nManager in styles. This PR allows flexibility for a non-RTL environment to include textAlign: 'right' fields (useful for currency and accounting)

inputStyle is spread first, allowing the fixed props of fontSize, baseColor, textColor, disabled, multiline to override
This allows for all TextStyleProps to be supported (e.g. textAlign) by the TextInput componant.
using textAlign as an example: it's determined by I18nManager. This allows flexibility for a non-RTL environment to include textAlign: 'right' fields (useful for currency and acounting)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant